import request from '../utils/request'

export default {
  // 校验密码是否正确
  checkPass (userId, password) {
    return request({
      url: '/user/pwd',
      method: 'post',
      data: {
        userId,
        password
      }
    })
  },
  // 修改密码
  updatePass (userId, password) {
    return request({
      url: '/user/pwd',
      method: 'put',
      data: {
        userId,
        password
      }
    })
  }
}
